package com.thkj.service;

import java.util.List;
import java.util.Map;

import com.thkj.entity.RmEnum;
import com.thkj.entity.RmEnumDetail;

import dp.dao.PagingList;

public interface RmEnumService {
    void insert(RmEnum t);
    int update(String oldEnumCd, RmEnum t);
    int delete(String t);
    RmEnum getById(String t);
    
    PagingList<RmEnum> query(int pageIndex, int pageSize, Map<String, Object> param);
    
    List<RmEnumDetail> getDetail(String enumCd, String enabled);
    List<Map> queryEnumDetail(String enumCd, String enabled);
    void insertDetail(RmEnumDetail detail);
    int updateDetail(RmEnumDetail detail);
    int deleteDetail(String detailId);
    
    /**
     * 获取枚举值
     * @param enumCd
     * @param enumDetailValue
     * @return
     */
    String getEnumDetailLabel(String enumCd,String enumDetailValue);
    
}